PowerTCP Mail for .NET
Read(Byte[]) Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > EnhancedStream Class > Read Method : Read(Byte[]) Method




buffer
The storage location for the received data.
Reads at least one byte of data from the Stream and copies it into the provided buffer.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Read( _
   ByVal buffer() As Byte _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As EnhancedStream
Dim buffer() As Byte
Dim value As Integer
 
value = instance.Read(buffer)
C# 
public int Read( 
   byte[] buffer
)
Managed Extensions for C++ 
public: int Read( 
   byte[]* buffer
) 
C++/CLI 
public:
int Read( 
   array<byte>^ buffer
) 

Parameters

buffer
The storage location for the received data.

Return Value

The total number of bytes read into the buffer.

Exceptions

ExceptionDescription
System.IO.IOExceptionThrown when the Stream is not readable.
System.ArgumentNullExceptionThrown when the buffer or callback is null.

Remarks

This is a convenience method for all derived classes, calling Read(buffer,0, buffer.Length) on the stream.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.